package com.eight.cloud.redisson.model;

import com.fasterxml.jackson.core.type.TypeReference;
import lombok.Builder;
import lombok.Data;

/**
 * 缓存键和类型绑定
 *
 * @ClassName: TypedKey
 * @Author: TXC
 * @Date: 2025-09-03 11:21
 **/
@Data
@Builder
public class TypedKey<T> {
    /**
     * 缓存键
     */
    private String key;
    /**
     * 缓存类型
     */
    private TypeReference<T> type;
    public TypedKey(String key, TypeReference<T> type) {
        this.key = key;
        this.type = type;
    }
}
